---
id: connect
title: "connect"
slug: connect
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Connects the socket.



















## Examples

### Connect



<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
realtime.connect()
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>